//
//  NotificationCenter.h
//  TestApp
//
//  Created by lianglibaoM2 on 2024/8/2.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NotificationCenter : NSObject

+ (instancetype)sharedCenter;

- (void)addObserver:(id)observer selector:(SEL)selector name:(NSString *)name object:(nullable id)object;
- (void)removeObserver:(id)observer;
- (void)removeObserver:(id)observer name:(NSString *)name object:(id)object;
- (void)postNotificationName:(NSString *)name object:(id)object userInfo:(NSDictionary *)userInfo;

@end

NS_ASSUME_NONNULL_END
